package com.inossem.warehousestorage_inossem.bean.inventory;

import com.inossem.warehousestorage_inossem.bean.common.Bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/3 0003.
 */

public class InventoryBatchBean  extends Bean{


    /**
     * code : 200
     * msg : 公共响应信息
     * data : {"batch":[{"id":"1","name":"名称1","required":"1","type":"0"},{"id":"2","name":"名称2","required":"0","type":"1"},{"id":"3","name":"名称3","required":"1","type":"3","select":[{"value":"01","text":"沈阳"},{"value":"02","text":"上海"},{"value":"03","text":"深圳"}]}]}
     */

    private String code;
    private String msg;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<BatchBean> batch = new ArrayList<BatchBean>();

        public List<BatchBean> getBatch() {
            return batch;
        }

        public void setBatch(List<BatchBean> batch) {
            this.batch = batch;
        }

        public static class BatchBean {
            /**
             * id : 1
             * name : 名称1
             * required : 1
             * type : 0
             * select : [{"value":"01","text":"沈阳"},{"value":"02","text":"上海"},{"value":"03","text":"深圳"}]
             */

            private String id;
            private String name;
            private String required;
            private String type;
            private List<SelectBean> select;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getRequired() {
                return required;
            }

            public void setRequired(String required) {
                this.required = required;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public List<SelectBean> getSelect() {
                return select;
            }

            public void setSelect(List<SelectBean> select) {
                this.select = select;
            }

            public static class SelectBean {
                /**
                 * value : 01
                 * text : 沈阳
                 */

                private String value;
                private String text;

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }

                public String getText() {
                    return text;
                }

                public void setText(String text) {
                    this.text = text;
                }
            }
        }
    }
}
